import http from "../../utils/http"
interface userGroupItem{
    _id?:string
    name:string
}
const userGroups = {
    // 查询用户分组数据
    // search: (data?: object) => http.post('/userGroups/search', data),
    search:function(data: PageQuery){
        return  http.post('/userGroups/search', data)
    },
    // 新增用户分组数据
    add: (data: object) => http.post('/userGroups/add', data),
    // 删除用户分组数据
    remove: (data: DeleteParams) => http.delete('/userGroups/remove', data),
    // 修改用户分组数据
    update: (data: userGroupItem) => http.put('/userGroups/update', data)
}
export default userGroups;